import { Component, OnInit, Inject, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
@Component({
  selector: 'app-create-project',
  templateUrl: './create-project.component.html',
  styles: [],
  changeDetection: ChangeDetectionStrategy.Default
})
export class CreateProjectComponent implements OnInit {

  constructor(@Inject(MAT_DIALOG_DATA) private data: any,
    private dialogRef: MatDialogRef<CreateProjectComponent>, private cd: ChangeDetectorRef) { }

  ngOnInit() {
    console.log(this.data);
    //this.cd.markForCheck();
  }
  onSave(e) {
    this.dialogRef.close("通过对话框保存了对话框！");
  }
}
